|
pttest[oa]SUT testDescriptionpttesto executes test (1) on specifies machines and has an exit value which is the logical OR of the test results.pttesta executes test (1) on specifies machines and has an exit value which is the logical AND of the test results. pttest is a symbolic link to pttesto.
Command Line Argumentspttest[ao] [-all|-m <machine_file>|-M <machine_list>] <arguments to test>
Environment Variables
ExamplesTo test for the existence of the file /home/johndoe/myfile on the machines specified in the file "destination_machines" use
pttest -m destination_machines -f /home/johndoe/myfile If /home/johndoe/myfile is missing on any node, pttest will have an exit code of 1. To do the same test, specifying machines on the command line, use
pttest -M "host1 host2 host3" -f /home/johndoe/myfile To test on similarly named hosts as in the previous example, an abbreviation can be used
pttest -M "host%d@1-3" -f /home/johndoe/myfile where the %d is replaced by the numbers 1-3 when the test is performed.
See Alsotest(1), SUT(1)
|